package com.github.jspxnet.worktask.dao;

import com.github.jspxnet.sober.SoberSupport;
import com.github.jspxnet.txweb.IMember;
import com.github.jspxnet.txweb.table.Member;
import com.github.jspxnet.worktask.table.ConfFlowNode;
import com.github.jspxnet.worktask.table.TaskAgency;

import java.util.List;
import java.util.Map;

public interface UserAdapterDAO extends SoberSupport {


    Member getMember(String userId);

    boolean isAuthority(ConfFlowNode confFlowNode, String userId);

    Map<String, TaskAgency> getTaskAgencyMap();

    List<Member> getMemberForExpression(String select);

    List<Member> getDepartmentMember(IMember member);

    List<Member> getDepartmentMember(String departmentId);
}
